
#include <iostream>
#include "CMachine.h"
using namespace std;


int main()
{
    CMachine *theMachine = new CMachine();
    char theCommand;

    while (1)
    {
        cout << "Enter 0/1: ";
        cin >> theCommand;

        if ('0' == theCommand)
        {
            theMachine->off();
        }
        else if ('1' == theCommand)
        {
            theMachine->on();
        }
        else
        {
        	cout << "\t please enter a correct command" << endl;
        }
    }
}
